<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>创建用户</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="<c:url value="/resources/bootstrap/css/bootstrap.css" />"
	rel="stylesheet">
<link href="<c:url value="/resources/datepicker/css/datepicker.css" />"
	rel="stylesheet">
<link href="<c:url value="/resources/site/css/site.css" />"
	rel="stylesheet">
<link
	href="<c:url value="/resources/bootstrap/css/bootstrap-responsive.css"/>"
	rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="<c:url value="/resources/bootstrap/js/html5shiv.js"/>" ></script>
    <![endif]-->

<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="../assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="../assets/ico/favicon.png">
</head>

<body>

	<div class="container">
		<tiles:useAttribute id="nav" name="nav" classname="java.lang.String" ignore="true" />
		<div class="masthead">
			<ul class="nav nav-pills pull-right">
				<!-- 首页导航 -->
				<li 
					<c:choose>
						<c:when test="${nav == 'home'}">  
							class="active"
					   </c:when>
				   </c:choose>
			     ><a href="<c:url value="/"/>"><i class="icon-home"></i>&nbsp;&nbsp;主页</a></li>
			     
				<!-- 用户导航 -->
				<li
					<c:choose>
						<c:when test="${nav == 'user'}">  
							class="dropdown active"
					   </c:when>
					   <c:otherwise> 
							class="dropdown"
					   </c:otherwise>
					</c:choose>><a
					href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i>&nbsp;&nbsp;用户 <b
						class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href='<c:url value="/user"/>'>创建</a></li>
						<li><a href="<c:url value="/user/all"/>">查看</a></li>
					</ul></li>
					
				
				<!-- 帮助组导航 -->
					<li
					<c:choose>
						<c:when test="${nav == 'helperGroup'}">  
							class="dropdown active"
					   </c:when>
					   <c:otherwise> 
							class="dropdown"
					   </c:otherwise>
					</c:choose>><a
					href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-eye-open"></i>&nbsp;&nbsp;帮助组 <b
						class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href='<c:url value="/helpergroup"/>'>创建</a></li>
						<li><a href="<c:url value="/helpergroup/all"/>">查看</a></li>
					</ul></li>
				<li><a href="#">Contact</a></li>
			</ul>
			<h3 class="muted">健康一生</h3>
		</div>

		<hr>
		<!-- 主要内容 -->
		<tiles:insertAttribute name="main_content" />
		<hr>

		<div class="footer">
			<p>&copy; Company 2013</p>
		</div>

	</div>
	<!-- /container -->

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<c:url value="/resources/jquery/jquery-2.0.3.js"/>"></script>
	<script src="<c:url value="/resources/bootstrap/js/bootstrap.js" />"></script>
	<script
		src="<c:url value="/resources/datepicker/js/bootstrap-datepicker-zh.js" />"></script>
	
	<!-- 注入script -->
	<tiles:useAttribute id="scripts" name="scripts" classname="java.util.List" ignore="true" />
	<c:forEach var="script" items="${scripts}">
		<script type="text/javascript" src="<c:url value="/resources/${script}" />"></script>	
	</c:forEach>	
	
	<script src="<c:url value="/resources/site/js/site.js" />"></script>
	
</body>
</html>
